{
 Makarova Liza
 04.09.12
 This program sorts numbers.
}
program sort;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  a, b, c, i, j: integer;
  fin, fout: textFile;
  mas: array of integer;
begin
  assignFile (fin, 'input.txt');
  reset (fin);
  assignFile (fout, 'output.txt');
  rewrite (fout);
  readln (fin, a);
  setlength (mas, a);
  for j:= 0 to a-1 do
  begin
    read (fin, b);
    mas[j]:=b;
  end;
  for j:= 1 to a-1  do
    for i:= 0 to a-j-1 do
    begin
      if (mas[i]>mas[i+1]) then
      begin
        c:= mas[i];
        mas[i]:= mas[i+1];
        mas[i+1]:= c;
      end;
    end;
  for i:= 0 to a-1 do
  begin
    write (fout, mas[i], ' ');
  end;
  closeFile (fin);
  closeFile (fout);
end.
